package com.letu.core.point;

import com.letu.core.context.ContextUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

@Data
public class TransactionLogPoint extends BasePoint {
    /**
     * 记录
     */
    private Object obj;

    public TransactionLogPoint(Object obj) {
        this.obj = obj;
    }

    @Override
    public String toString() {
        return "TransactionLogPoint{" +
                "trace='" + getTrace() + '\'' +
                ", createTime='" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(getCreateTime()) + '\'' +
                ", 内容=" + obj +
                '}';
    }
}
